package com.example.learnelementuiandspringboot.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import java.io.Serializable;
import java.math.BigDecimal;

/**
 * <p>
 * 
 * </p>
 *
 * @author 国龙
 * @since 2024-02-02
 */
public class Book implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "bookid", type = IdType.AUTO)
    private Integer bookid;

    private String name;

    private BigDecimal price;

    public Integer getBookid() {
        return bookid;
    }

    public void setBookid(Integer bookid) {
        this.bookid = bookid;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public BigDecimal getPrice() {
        return price;
    }

    public void setPrice(BigDecimal price) {
        this.price = price;
    }

    @Override
    public String toString() {
        return "Book{" +
        "bookid = " + bookid +
        ", name = " + name +
        ", price = " + price +
        "}";
    }
}
